home *** CD-ROM | disk | FTP | other *** search
- /**/
- say 'Programa de Instalación de INFOVIA'
- parse source origen_1
- parse value origen_1 with . . origen
- unidad = filespec("drive", origen)
- directorio_barra = filespec("path", origen)
- directorio = substr(directorio_barra, 1, length(directorio_barra)-1)
- origen = unidad||directorio
-
- if Translate(unidad) = 'A:' | Translate(unidad) = 'B:' | ,
- stream(origen||'\infovia.zip','c','query exists') = '' then do
- say 'Copiando fichero a directorio temporal'
- '@md c:\infovtmp'
- '@copy 'origen'\*.exe C:\INFOVTMP > nul'
- '@copy 'origen'\*.dll C:\INFOVTMP > nul'
- '@copy C:\INFOVTMP\*.dll C:\INFOVTMP\DLL > nul'
- env = "OS2ENVIRONMENT"
- rc = value('path','c:\infovtmp;'||value('path',,env),env)
- '@c:'
- '@cd infovtmp'
- '@c:\infovtmp\infoinst 'origen
- '@c:'
- '@cd \infovtmp'
- say 'Borrando ficheros del directorio temporal'
- '@del c:\infovtmp /n > nul'
- '@cd \'
- '@rd infovtmp >nul '
- end
- else do
- env = "OS2ENVIRONMENT"
- rc = value('path',origen';'||value('path',,env),env)
- '@'unidad
- '@cd 'origen
- '@infoinst 'origen
- end
-
- exit